package grafica;

import java.awt.Color;
import java.awt.Graphics;

import modulo.Energia;
import vista.Drawable;

public abstract class EnergiaGrafica extends Energia implements Drawable {

	public EnergiaGrafica(int x, int y, int width, int height, int energia) {
		super(x, y, width, height, energia);
	}

	protected abstract void disegnaRiempimento(Graphics g);

	protected abstract void disegnaBordo(Graphics g);

	@Override
	public void draw(Graphics g) {
		g.setColor(Color.GREEN);
		disegnaRiempimento(g);
		g.setColor(Color.BLACK);
		disegnaBordo(g);
	}

}